﻿/*
    Performance Manager
*/
function PerformManager(name) {
    this.funcName = name;
    this.startTime = "";
    this.endTime = "";
}

PerformManager.prototype.Start = function () {
    this.startTime = new Date().getMilliseconds();
}

PerformManager.prototype.Stop = function () {
    this.endTime = new Date().getMilliseconds();
}

PerformManager.prototype.Show = function () {
    var execution = this.endTime - this.startTime;
    alert("Function : " + this.funcName + " executed in " + execution + " milliseconds");
}

